
a.exe: ../main.cpp simpleGUI.cpp icon.o
	g++ -Wall -oa -lmingw32 -Llib -lSDLmain SDL.dll simpleGUI.cpp icon.o -mwindows -O2
	
a: ../main.cpp
	g++ ../main.cpp -oa

d: ../main.cpp simpleGUI.cpp icon.o
	g++ -Wall -oa -DDEBUG_GOMOKU -lmingw32 -Llib -lSDLmain SDL.dll simpleGUI.cpp icon.o -mwindows -g

noop: ../main.cpp simpleGUI.cpp icon.o
	g++ -Wall -oa -lmingw32 -Llib -lSDLmain SDL.dll simpleGUI.cpp icon.o -mwindows

l: ../main.cpp simpleGUI.cpp
	g++ -Wall -oa -DUSING_LINUX -lSDLmain -lSDL simpleGUI.cpp -O2

ld: ../main.cpp simpleGUI.cpp
	g++ -Wall -oa -DUSING_LINUX -DDEBUG_GOMOKU -lSDLmain -lSDL simpleGUI.cpp -g

ln: ../main.cpp simpleGUI.cpp 
	g++ -Wall -oa -DUSING_LINUX -lSDLmain -lSDL simpleGUI.cpp 


icon.o: icon.rc icon.ico
	windres -i icon.rc -o icon.o

.PHONY:clean

clean:
	rm *.o
	rm *.exe
	rm a

